﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using OnTheWay;

namespace Models
{
    [DataBaseTable]
    public class SysAdmin : OnTheWay.Models.Model
    {
        public SysAdmin()
        {
            // TODO: Complete member initialization
        }

        public SysAdmin(string name)
        {
            // TODO: Complete member initialization
            this.Name = "";
        }
        /// <summary>
        /// 性别
        /// </summary>
        [DataMember]
        [DataBaseMember(typeof(bool), Detail = "性别", NotNullable = true)]
        public virtual bool Sex { get; set; }
        /// <summary>
        /// 超级管理员
        /// </summary>
        [DataMember]
        [DataBaseMember(typeof(bool), Detail = "超级管理员", NotNullable = true)]
        public virtual bool IsSuper { get; set; }
        /// <summary>
        /// 登录账户
        /// </summary>
        [DataMember]
        [DataBaseMember(typeof(string), Detail = "登录账户", NotNullable = true)]
        public virtual string LoginName { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        [DataMember]
        [DataBaseMember(typeof(string), Detail = "登录密码", NotNullable = true)]
        public virtual string Password { get; set; }
    }
}
